import { constantRoutes } from '@/router'

const state = {
  menus: [...constantRoutes]
}

const mutations = {
  setMenu(state, data) {
    state.menus = [...constantRoutes, ...data]
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
